package com.ovopark.organize.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ovopark.organize.server.model.entity.FranchiseesRegistrationAddress;
import com.ovopark.organize.server.model.query.FranchiseesAddressQuery;
import com.ovopark.organize.server.model.vo.FranchiseesRegistrationAddressVo;
import org.apache.ibatis.annotations.Param;

/**
 * @Description:
 * @Author:
 * @Date:
 */
public interface FranchiseesRegistrationAddressMapper extends BaseMapper<FranchiseesRegistrationAddress> {


    IPage<FranchiseesRegistrationAddressVo> getFranchiseesAddressPage(@Param("page") Page<FranchiseesRegistrationAddress> page,
                                                                      @Param("groupId") Integer groupId,
                                                                      @Param("query") FranchiseesAddressQuery query);

    void updateNameByFranchiseesId(@Param("franchiseesId") Integer franchiseesId, @Param("name") String name,  @Param("mobilePhone") String mobilePhone);
}
